#include <stdio.h>

int main(void){
	char input[128];
	gets(input);
	char* p = input;
	int Lcas = 0,Caps = 0,nums = 0,space = 0,other = 0;
	for(;*p;*p++){
		if(*p >= 'a' && *p <= 'z') Lcas++;
		else if(*p >= 'A' && *p <= 'Z') Caps++;
		else if(*p >= 48 && *p <= 57) nums++;
		else if(*p == ' ') space++;
		else other++;
	}
	printf("小写%d个，大写%d个，数字%d个，空格%d个，其它%d个。",Lcas,Caps,nums,space,other);
	return 0;
} 
